﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SCopyGroupInfo extends Object
    {
        public var groupId:SEntityId;
        public var captainId:SEntityId;
        public var captainName:String;
        public var captainLevel:int;
        public var captainSex:int;
        public var captainCamp:int;
        public var playerNum:int;
        public var progress:int;
        public var members:Array;

        public function SCopyGroupInfo()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            this.groupId.__write(param1);
            this.captainId.__write(param1);
            param1.writeString(this.captainName);
            param1.writeInt(this.captainLevel);
            param1.writeInt(this.captainSex);
            param1.writeInt(this.captainCamp);
            param1.writeInt(this.playerNum);
            param1.writeInt(this.progress);
            SeqPublicPlayerHelper.write(param1, this.members);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.groupId = new SEntityId();
            this.groupId.__read(param1);
            this.captainId = new SEntityId();
            this.captainId.__read(param1);
            this.captainName = param1.readString();
            this.captainLevel = param1.readInt();
            this.captainSex = param1.readInt();
            this.captainCamp = param1.readInt();
            this.playerNum = param1.readInt();
            this.progress = param1.readInt();
            this.members = SeqPublicPlayerHelper.read(param1);
            return;
        }// end function

    }
}
